<%@page import="java.io.* , java.util.*, java.sql.*, com.myapp.struts.actionform.*, com.myapp.struts.dao.*, com.myapp.struts.beans.*"%>
<html>
    <head>
        <title>Edit UOM</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <link href="../../../../css/cms.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">

            <tr>
                <td height="547" align="center" valign="top">&nbsp;<br />
                    &nbsp;<br />
                    <table width="564" border="0" align="center" cellpadding="2" cellspacing="0">
                        <tr>
                            <td width="672" align="center" valign="middle" class="pageName"><p>&nbsp;</p>
                                <form id="form1" name="form1" method="post" action="">
                                    <table height="60" border="0" align="center" cellpadding="0" cellspacing="0" style="border-right: #000000 1px solid;
                                           border-top: #000000 1px solid; border-left: #000000 1px solid;  border-bottom: #000000 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
                                        <tr>
                                            <th width="180" height="34" align="center" valign="middle">Unit of Measurment</th>
                                            <th width="266" align="center" valign="middle">Description</th>
                                        </tr>
                                        <%
            UomDao uomdao = new UomDao();
            Vector gp1 = uomdao.getRows();
            if (gp1 != null) {
                Iterator itg = gp1.iterator();
                while (itg.hasNext()) {
                    UomBean gb = (UomBean) itg.next();

                                        %>
                                        <tr  >
                                            <td height="24" nowrap="nowrap">
                                                <div align="center" class="style12">
                                                    <div align="center"><%=gb.getUom()%></div>
                                                </div></td>
                                            <td nowrap="nowrap">
                                                <div align="center" class="style12">
                                                    <div align="center"><%=gb.getDescription()%></div>
                                                </div></td>
                                        </tr>
                                        <%}
        }%>
                                    </table>
                                    <div align="center">
                                        <p><a href='javascript:displayHTML(form1.innerHTML)'><strong>Print Preview</strong></a></p>
                                    </div>
                                </form></td>
                        </tr>
                        <td></td>
                    </table></td>
            </tr>
        </table>
    </body>
</html>
